package com.chuanke.ckfamily.dao.finance.model;
import com.weijie.core.extend.FiledName;
import com.weijie.core.extend.IgnoreColumn;
import com.weijie.core.extend.TableName;
import com.weijie.core.model.BaseModel;
import java.io.Serializable;
import java.sql.Timestamp;

@TableName("cf_gain_packet")
public class GainPacket extends BaseModel implements Serializable {

	private static final long serialVersionUID = -2933966633901004548L;

	// 被领取的红包id
	private Long pid;
	@FiledName("pid")
	public Long getPid(){
		return this.pid;
	}
	public void setPid(Long pid){
		 this.pid = pid;
	}

	// 用户主键
	private Long uid;
	@FiledName("uid")
	public Long getUid(){
		return this.uid;
	}
	public void setUid(Long uid){
		 this.uid = uid;
	}

	// 红包金额
	private Long price;
	@FiledName("price")
	public Long getPrice(){
		return this.price;
	}
	public void setPrice(Long price){
		 this.price = price;
	}

	// 领取时间
	private Timestamp gain_time;
	@FiledName("gain_time")
	public Timestamp getGain_time(){
		return this.gain_time;
	}
	public void setGain_time(Timestamp gain_time){
		 this.gain_time = gain_time;
	}

	/**
	 * 最后一个红包
	 */
	private boolean is_last;
	@IgnoreColumn
	public boolean isIs_last() {
		return is_last;
	}

	public void setIs_last(boolean is_last) {
		this.is_last = is_last;
	}
}